﻿// <com.woyouqiu.Copyright>
// --------------------------------------------------------------
// <copyright>上海有求网络科技有限公司 2015</copyright>
// <Solution>Vecen.BangChuang</Solution>
// <Project>Vecen.BangChuang.Net.Sms</Project>
// <FileName>SmsMessage.cs</FileName>
// <CreateTime>2017-04-29 22:01</CreateTime>
// <Author>何苗</Author>
// <Email>hemiao@woyouqiu.com</Email>
// <log date="2017-04-29 22:01" version="00001">创建</log>
// --------------------------------------------------------------
// </com.woyouqiu.Copyright>

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities.Auditing;

namespace Vecen.BangChuang.Net.Sms {
    [Table("SmsMessages")]
    public class SmsMessage: CreationAuditedEntity {
        /// <summary>
        /// Receiver
        /// </summary>
        [Required]
        [StringLength(16)]
        public string ReceiverPhone { get; set; }

        /// <summary>
        /// Template code or content
        /// </summary>
        [StringLength(32)]
        public string TemplateCode { get; set; }

        /// <summary>
        /// Template parameters
        /// </summary>
        [StringLength(512)]
        public string TemplateParams { get; set; }

        /// <summary>
        /// Free SignName
        /// </summary>
        [StringLength(512)]
        public string FreeSignName { get; set; }


        public bool IsSuccess { get; set; }

        /// <summary>
        /// 服务商返回的短信标识
        /// </summary>
        [StringLength(128)]
        public string RequestSmsUid { get; set; }
    }
}